﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>日程提醒</title>
   <link href="/CSS/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/font-awesome-4.3.0/css/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="/CSS/V3/animate.css" rel="stylesheet">
    <link href="/CSS/V3/style.css?v=2.2.0" rel="stylesheet">
    <link href="/CSS/V3/BaseClassV3.css" rel="stylesheet" />
    <script src="/Scripts/jquery-1.11.2.min.js"></script>
    <script src="/JqueryPlug/laypage/laypage.js"></script>
    <script src="/Scripts/avalon.js"></script>
    <script src="/Scripts/SZHLCommon.js?jsver=5"></script>
    <script src="/JqueryPlug/Hplus-v.3.1.0/js/jquery-ui.custom.min.js"></script>
    <link href="/JqueryPlug/Hplus-v.3.1.0/css/plugins/fullcalendar/fullcalendar.css" rel="stylesheet">
    <link href="/JqueryPlug/Hplus-v.3.1.0/css/plugins/fullcalendar/fullcalendar.print.css" rel="stylesheet">
     <script src="/JqueryPlug/Hplus-v.3.1.0/js/plugins/fullcalendar/fullcalendar.min.js"></script>

    <script>
        
        $(document).ready(function () {

            /* initialize the calendar
             -----------------------------------------------------------------*/
            var date = new Date();
            var d = date.getDate();
            var m = date.getMonth();
            var y = date.getFullYear();

            $('#calendar').fullCalendar({
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,basicWeek,basicDay'
                },
                events: function (start, end, callback) {
                    var st = start.getFullYear() + '-' + start.getMonth() + '-' + start.getDate();
                    var ed = end.getFullYear() + '-' + end.getMonth() + '-' + end.getDate();
                    $.getJSON("/API/FTAPI.ashx?action=GETTXSXDATA_BY", { "start": st, "end": ed }, function (r) {
                        callback(r.Result);
                    });
                }
            });


            

        });
    </script>
</head>
<body class="gray-bg">
     <div id="calendar"></div>

</body>
</html>
